/* menu.js */
$(document).ready(function(){
	/* Top Menu */
	$("div#topmenu a").click(function(){
		loadPage($(this).attr("href"));
		return false;
	});


});
/* Pages */
/* Turn to this page */
function loadPage(name){
	$(".page").hide();
	$(".page"+name).show();
	var page = $(".page"+name)[0];
	if(page && page.loader){
		page.loader();
	}
}
/* Content (Sub-Pages) */
/* Turn to this content (sub page) */
function loadContent(name){
	$(".content").hide();
	$(".content"+name).show();
	var content = $(".content"+name)[0];
	if(content && content.loader){
		content.loader();
	}
}
